from header_common import *
from header_parties import *
from ID_troops import *
from ID_factions import *
from ID_party_templates import *
from ID_map_icons import *

####################################################################################################################
#  Each party record contains the following fields:
#  1) Party id: used for referencing parties in other files.
#     The prefix p_ is automatically added before each party id.
#  2) Party name.
#  3) Party flags. See header_parties.py for a list of available flags
#  4) Menu. ID of the menu to use when this party is met. The value 0 uses the default party encounter system.
#  5) Party-template. ID of the party template this party belongs to. Use pt_none as the default value.
#  6) Faction.
#  7) Personality. See header_parties.py for an explanation of personality flags.
#  8) Ai-behavior
#  9) Ai-target party
# 10) Initial coordinates.
# 11) List of stacks. Each stack record is a triple that contains the following fields:
#   11.1) Troop-id. 
#   11.2) Number of troops in this stack. 
#   11.3) Member flags. Use pmf_is_prisoner to note that this member is a prisoner.
# 12) Party direction in degrees [optional]
####################################################################################################################

no_menu = 0
#pf_town = pf_is_static|pf_always_visible|pf_hide_defenders|pf_show_faction
pf_town = pf_is_static|pf_always_visible|pf_show_faction|pf_label_large
pf_castle = pf_is_static|pf_always_visible|pf_show_faction|pf_label_medium
pf_village = pf_is_static|pf_always_visible|pf_hide_defenders|pf_label_small
pf_army = icon_gray_knight|carries_goods(4)

#sample_party = [(trp_swadian_knight,1,0), (trp_swadian_peasant,10,0), (trp_swadian_crossbowman,1,0), (trp_swadian_man_at_arms, 1, 0), (trp_swadian_footman, 1, 0), (trp_swadian_militia,1,0)]

# NEW TOWNS:
# NORMANDY: Rouen, Caen, Bayeux, Coutances, Evreux, Avranches
# Brittany: Rennes, Nantes,
# Maine: Le Mans
# Anjou: Angers


parties = [
  ("main_party","Main Party",icon_player|pf_limit_members, no_menu, pt_none,fac_player_faction,0,ai_bhvr_hold,0,(-47.654144,-17.502153),[(trp_player,1,0)]),
  ("temp_party","temp_party",pf_disabled, no_menu, pt_none, fac_commoners,0,ai_bhvr_hold,0,(0,0),[]),
  ("camp_bandits","camp_bandits",pf_disabled, no_menu, pt_none, fac_outlaws,0,ai_bhvr_hold,0,(1,1),[(trp_unarmed_troop,3,0)]),
#parties before this point are hardwired. Their order should not be changed.
("temp_party_2","temp_party_2",pf_disabled, no_menu, pt_none, fac_commoners,0,ai_bhvr_hold,0,(0,0),[]),
#Used for calculating casulties.
("temp_casualties","casualties",pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("temp_casualties_2","casualties",pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("temp_casualties_3","casualties",pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("temp_wounded","enemies_wounded",pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("temp_killed", "enemies_killed", pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("main_party_backup","_",  pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("encountered_party_backup","_",  pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("ally_party_backup","_",  pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("collective_friends_backup","_",  pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("player_casualties","_",  pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("enemy_casualties","_",  pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("ally_casualties","_",  pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),

("collective_friends","collective_ally",pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("collective_enemy","collective_enemy",pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
("collective_ally","collective_ally",pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
# parties used for ford icons

#Used for party-related script calculations
('dummy','dummy',pf_disabled, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(1,1),[]),
#Merc parties
("hyogo_disciples","Hyogo_disciples",pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),
[(trp_disciple,5,0)]),
("hosokawa_mercs","hosokawa-mercs",pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),
[(trp_t2_light_cav_n,10,0)]),
("yamana_mercs","yamana-mercs",pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),
[(trp_t2_light_cav_n,10,0)]),
('city_1_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_2_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_3_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_4_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_5_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_6_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_7_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_8_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_9_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_10_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_11_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_12_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_13_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('city_14_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,4,0),(trp_farmer,8,0)]),
('town_1_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_2_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_3_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_4_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_5_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_6_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_7_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_8_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_9_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_10_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_11_mercs','mercs',pf_disabled,no_menu,pt_none,fac_yamana,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_12_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_13_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_14_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_15_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_16_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_17_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_18_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_19_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('town_20_mercs','mercs',pf_disabled,no_menu,pt_none,fac_neutral,0,ai_bhvr_hold,0,(0,0),[(trp_ronin,3,0),(trp_farmer,6,0)]),
('village_1_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_2_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_3_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_4_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_5_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_6_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_7_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_8_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_9_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_10_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_11_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_12_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_13_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_14_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_15_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_16_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_17_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_18_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_19_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_20_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_21_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_22_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_23_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_24_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_25_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_26_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_27_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_28_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_29_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_30_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_31_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_32_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_33_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_34_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_35_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_36_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_37_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_38_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_shinobi_apprentice,4,0)]),
('village_39_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('village_40_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_farmer,4,0)]),
('temple_1_mercs','mercs',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[(trp_monk_t,4,0)]),
# town garrison reinforcements
  ("village_garrison_source",'vgm',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[]),
  ("town_garrison_source",'tgm',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[]),
  ("city_garrison_source",'gcm',pf_disabled,no_menu,pt_none,fac_commoners,0,ai_bhvr_hold,0,(0,0),[]),
#Capitol Cities
  ("city_1","South Kyoto",icon_town|pf_town,no_menu, pt_none, fac_imperial,0,ai_bhvr_hold,0,(-50,-9),[]),
  ("city_2","West Kyoto",icon_town|pf_town,no_menu, pt_none, fac_imperial,0,ai_bhvr_hold,0,(-47,-11),[]),
  ("city_3","North Kyoto",icon_town|pf_town,no_menu, pt_none, fac_imperial,0,ai_bhvr_hold,0,(-47.075726,-14.758001),[]),
  ("city_4","East Kyoto",icon_town|pf_town,no_menu, pt_none, fac_imperial,0,ai_bhvr_hold,0,(-51,-12),[]),
#Cities
  #Hosokawa and allied cities
  ("city_5","Hyogo",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(32.703331,66.269981),[]),
  ("city_6","Himeji",icon_town|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(117.214134,38.443130),[]),
  ("city_7","Obama",icon_town|pf_town,no_menu, pt_none, fac_takeda,0,ai_bhvr_hold,0,(-30.832685,-110.742912),[]),
  ("city_8","Kakogawa",icon_town|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(84.024818,59.389732),[]),
  ("city_9","Otsu",icon_town|pf_town,no_menu, pt_none, fac_kyogoku,0,ai_bhvr_hold,0,(-67.700401,-21.630497),[]),
  ("city_10","Sakai",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(-7.887609,81.179184),[]),
  #Yamana and allied cities
  ("city_11","Wakayama",icon_town|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(30.286148,159.197708),[]),
  ("city_12","Nara",icon_town|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-62.357445,45.364147),[]),
  ("city_13","Fujidera",icon_town|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-25.514482,67.929123),[]),
  ("city_14","Tsuruga",icon_town|pf_town,no_menu, pt_none, fac_shiba,0,ai_bhvr_hold,0,(-59.851219,-139.200180),[]),
  
#Towns
  #Hosokawa and allies
  ("town_1","Takase",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(-16.982088,46.253399),[]),
  ("town_2","Akashi",icon_town|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(75.085167,75.601357),[]),
  ("town_3","Uji",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(-51.761589,5.090202),[]),
  ("town_4","Kameyama",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(-15.387301,-19.396250),[]),
  ("town_5","Aioi",icon_town|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(144.445969,59.295269),[]),
  ("town_6","Takashima",icon_town|pf_town,no_menu, pt_none, fac_kyogoku,0,ai_bhvr_hold,0,(-86.345863,-74.228271),[]),
  ("town_7","Yodo",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(-33.895515,12.298635),[]),
  ("town_8","Ono",icon_town|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(80.985298,40.285797),[]),
  ("town_9","Kishiwada",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(-9.035378,103.615379),[]),
  ("town_10","Sumoto",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(78.480820,136.367401),[]),
  ("town_11","Sasayama",icon_town|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(39.246227,-20.972387),[]),
  #yamana and allies
  ("town_12","Hashimoto",icon_town|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-50.924053,107.868149),[]),
  ("town_13","Fukuchiyama",icon_town|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(61.726738,-60.560345),[]),
  ("town_14","Ueno",icon_town|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(-111.131363,18.395651),[]),
  ("town_15","Takada",icon_town|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-56.263172,70.115814),[]),
  ("town_16","Moriyama",icon_town|pf_town,no_menu, pt_none, fac_rokkaku,0,ai_bhvr_hold,0,(-86.301697,-32.531967),[]),
  ("town_17","Shiotsu",icon_town|pf_town,no_menu, pt_none, fac_rokkaku,0,ai_bhvr_hold,0,(-96.624512,-125.259132),[]),
  ("town_18","Hikone",icon_town|pf_town,no_menu, pt_none, fac_rokkaku,0,ai_bhvr_hold,0,(-120.653824,-69.969711),[]),
  ("town_19","Miyazu",icon_town|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(55.957291,-104.300034),[]),
  ("town_20","Hidaka",icon_town|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(120.737091,-86.047508),[]),
  
#Villages
  #Hosokawa and allies
  ("village_1","Itami",icon_village|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(2.101558,31.397736),[]),
  ("village_2","Sanda",icon_village|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(30.485603,22.508305),[]),
  ("village_3","Misaki",icon_village|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(32.264359,144.931122),[]),
  ("village_4","Haga",icon_village|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(147.990646,-33.759354),[]),
  ("village_5","Takahama",icon_village|pf_town,no_menu, pt_none, fac_takeda,0,ai_bhvr_hold,0,(-7.579440,-100.548279),[]),
  ("village_6","Nose",icon_village|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(8.743897,-2.492334),[]),
  ("village_7","Nishiwaki",icon_village|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(76.155914,7.126002),[]),
  ("village_8","Okawachi",icon_village|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(112.550934,1.549165),[]),
  ("village_9","Yamasaki",icon_village|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(146.080399,8.759955),[]),
  ("village_10","Ikuno",icon_village|pf_town,no_menu, pt_none, fac_akamatsu,0,ai_bhvr_hold,0,(111.534340,-29.087564),[]),
  ("village_11","Iwaji",icon_village|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(62.859554,89.694511),[]),
  ("village_12","Imazu",icon_village|pf_town,no_menu, pt_none, fac_kyogoku,0,ai_bhvr_hold,0,(-89.501228,-103.869263),[]),
  ("village_13","Hiyoshi",icon_village|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(6.622241,-48.899406),[]),
  ("village_14","Mikata",icon_village|pf_town,no_menu, pt_none, fac_takeda,0,ai_bhvr_hold,0,(-54.462891,-123.485855),[]),
  ("village_15","Miyama",icon_village|pf_town,no_menu, pt_none, fac_hosokawa,0,ai_bhvr_hold,0,(-8.453849,-64.870499),[]),
  #("village_165","Sakamoto",icon_village|pf_town,no_menu, pt_none, fac_kyogoku,0,ai_bhvr_hold,0,(18.384581 ,-125.353981 ),[]),
  #Yamana and allies
  ("village_16","Naga",icon_village|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-18.384546,125.353981),[]),
  ("village_17","Izushi",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(95.244926,-88.676163),[]),
  ("village_18","Kasumi",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(133.005188,-125.216698),[]),
  ("village_19","Oya",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(133.196014,-57.411072),[]),
  ("village_20","Muraoka",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(146.274826,-80.578049),[]),
  ("village_21","Kinosaki",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(100.948570,-131.809280),[]),
  ("village_22","Utano",icon_village|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-93.445099,77.836563),[]),
  ("village_23","Hikami",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(70.473091,-35.912094),[]),
  ("village_24","Kizu",icon_village|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-59.448757,27.512243),[]),
  ("village_25","Azuchi",icon_village|pf_town,no_menu, pt_none, fac_rokkaku,0,ai_bhvr_hold,0,(-99.378563,-46.342819),[]),
  ("village_26","Nagahama",icon_village|pf_town,no_menu, pt_none, fac_rokkaku,0,ai_bhvr_hold,0,(-135.483658,-101.619072),[]),
  ("village_27","Sekigahara",icon_village|pf_town,no_menu, pt_none, fac_toki,0,ai_bhvr_hold,0,(-154.460159,-111.798767),[]),
  ("village_28","Amino",icon_village|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(71,-145),[]),
  ("village_29","Santo",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(98.604263,-57.418018),[]),
  ("village_30","Oe",icon_village|pf_town,no_menu, pt_none, fac_yamana,0,ai_bhvr_hold,0,(71.924225,-84.153259),[]),
  ("village_31","Maizuru",icon_village|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(22.098459,-97.837738),[]),
  ("village_32","Ine",icon_village|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(44,-144),[]),
  ("village_33","Nabari",icon_village|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(-108.853767,48.313709),[]),
  ("village_34","Nishiyoshino",icon_village|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(-65.413788,124.603600),[]),
  ("village_35","Nagano",icon_village|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-30.801018,89.776657),[]),
  ("village_36","Kawakami",icon_village|pf_town,no_menu, pt_none, fac_yamana_hatakeyama,0,ai_bhvr_hold,0,(-103.842575,111.470184),[]),
  ("village_37","Mitsue",icon_village|pf_town,no_menu, pt_none, fac_ishikki,0,ai_bhvr_hold,0,(-136.312622,59.576164),[]),
  #Other
  ("village_38","Iga",icon_village|pf_town,no_menu, pt_none, fac_iga,0,ai_bhvr_hold,0,(-124.437935,2.719984),[]),
  ("village_39","Hino",icon_village|pf_town,no_menu, pt_none, fac_koga,0,ai_bhvr_hold,0,(-112.811806,-35.450596),[]),
  ("village_40","Shigaraki",icon_village|pf_town,no_menu, pt_none, fac_koga,0,ai_bhvr_hold,0,(-98.833603,-8.225060),[]),
  #Temples
  ("temple_1","Enryaku-ji",icon_monastery|pf_town,no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-66.654846,-44.910904),[(trp_monk_t,4,0)]),
  #Armies
  # ("hosokawa_army_1","Hosokawa Army",pf_army,no_menu,pt_none,fac_hosokawa,soldier_personality,ai_bhvr_hold,0,(10.1808,-69.1685),
   # []),
  # ("hosokawa_army_2","Hosokawa Army",pf_army,no_menu,pt_none,fac_hosokawa,soldier_personality,ai_bhvr_hold,0,(20.8643,13.041),
   # []),
  # ("yamana_army_1","Yamana Army",pf_army,no_menu,pt_none,fac_yamana,soldier_personality,ai_bhvr_hold,0,(60.9746,-39.3222),
   # []),
  # ("yamana_army_2","Yamana Army",pf_army,no_menu,pt_none,fac_yamana,soldier_personality,ai_bhvr_hold,0,(-56.6491,60.5884),
   # []),
#Other
  ("bandit_camp","bandit_camp",icon_town|pf_town|pf_no_label,no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(43.270859,47.632401),[]),
  ("end_towns","end_towns",pf_disabled,no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(0,0),[]),
  # Bridges
  ("Bridge_1","1",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-53.240128,-0.344215),[], 24),
  ("Bridge_2","2",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-14.542560,39.901939),[], 24),
  ("Bridge_3","3",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-47.180050,13.663216),[], 151),
  ("Bridge_4","4",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-105.961121,28.033430),[], 6),
  ("Bridge_5","5",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(66.183708,-35.796200),[], 92),
  ("Bridge_6","6",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(90.805107,60.906254),[], 67),
  ("Bridge_7","7",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(114.727356,38.964935),[], 89),
  ("Bridge_8","8",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(84.066147,19.935516),[], 90),
  ("Bridge_9","9",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(64.433899,-64.272858),[], 25),
  ("Bridge_10","10",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-103.671440,-52.054138),[], 337),
  ("Bridge_11","11",icon_bridge_a|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-79.369308,-16.687029),[], 115),
  ("Bridge_12","12",icon_bridge_b|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-47.445980,-6.685910),[], 146),
  ("Bridge_13","13",icon_bridge_b|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-53.650764,-8.167747),[], 90),
  ("Bridge_14","14",icon_bridge_b|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-65.614418,35.637329),[], 158),
  ("Bridge_15","15",icon_bridge_b|pf_is_static|pf_always_visible|pf_no_label, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-92.538864,-36.357456),[], 140),
  
# Spawn points
  ("river_pirate_spawn_point","river_pirate_sp",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(-17.220964,34.311245),[(trp_bandit,15,0)]),
  ("river_pirate_spawn_point_b","river_pirate_sp",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(-19.802122,56.567722),[(trp_bandit,15,0)]),
  ("river_pirate_spawn_point_c","river_pirate_sp",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(-40.176182,25.864037),[(trp_bandit,15,0)]),
  ("forest_bandit_spawn_point"  ,"forest_bandit_sp",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(21.739830,-4.766351),[(trp_bandit,15,0)]),
  ("mountain_bandit_spawn_point","mountain_bandit_sp",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(-30.465202,-37.671394),[(trp_bandit,15,0)]),
  ("sea_raider_spawn_point_1"   ,"sea_raider_sp",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(2.253584,113.758606),[(trp_bandit,15,0)]),
  ("sea_raider_spawn_point_2"   ,"sea_raider_sp",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(126.178848,59.122093),[(trp_bandit,15,0)]),
  ("spawn_points_end","spawn_points_end",pf_disabled|pf_is_static, no_menu,
   pt_none, fac_commoners,0,ai_bhvr_hold,0,(1, 1),[]),
]
